package org.ilovecode.events 
{
	import flash.events.Event;
	
	/**
	 * ...
	 * @author Vjekoslav Ratkajec
	 */
	public class ApartmentEvent extends Event 
	{
		
		public static const SELECTED:String = "selected";
		public static const MOUSE_OVER:String = "apartmentMouseOver";
		public static const MOUSE_OUT:String = "apartmentMouseOut";
		public static const CLICK:String = "apartmentClick";
		
		private var _item:Object = "";
		
		public function ApartmentEvent(type:String, item:Object, bubbles:Boolean=false, cancelable:Boolean=false) 
		{ 
			super(type, bubbles, cancelable);
			_item = item;
		} 
		
		public override function clone():Event 
		{ 
			return new ApartmentEvent(type, item, bubbles, cancelable);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("ApartmentEvent", "type", "item", "bubbles", "cancelable", "eventPhase"); 
		}
		
		public function get item():Object {
			return _item;
		}
		
	}
	
}